﻿#pragma once

#include "MapInfo.h"
#include <string>
#include "../../stringhelper.h"

namespace Server::MirDatabase
{
    class SafeZoneInfo
    {
    public:
        Point *Location;
        unsigned short Size = 0;
        bool StartPoint = false;

        MapInfo *Info;

        virtual ~SafeZoneInfo()
        {
            delete Location;
            delete Info;
        }

        SafeZoneInfo();

        SafeZoneInfo(BinaryReader *reader);

        void Save(BinaryWriter *writer);

        std::string ToString();
    };
}
